package com.carey.myblog.mapper;
import org.apache.ibatis.annotations.Param;

import com.carey.myblog.pojo.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author carey-
* @description 针对表【t_blog】的数据库操作Mapper
* @createDate 2022-05-25 22:09:39
* @Entity com.carey.myblog.pojo.Blog
*/
public interface BlogMapper extends BaseMapper<Blog> {
    int countByRecommend(@Param("recommend") Boolean recommend);

    List<String> selectyears();

    List<Blog> selectBlogByYear(@Param("year") String year);
}




